import request from '@/utils/request'

// 查询异常经营列表
export function listCompanyAbnormal(query) {
  return request({
    url: '/abnormal/companyAbnormal/list',
    method: 'get',
    params: query
  })
}

// 查询异常经营详细
export function getCompanyAbnormal(id) {
  return request({
    url: '/abnormal/companyAbnormal/' + id,
    method: 'get'
  })
}

// 保存异常经营
export function saveCompanyAbnormal(data) {
  return request({
    url: '/abnormal/companyAbnormal/save',
    method: 'post',
    data: data
  })
}

// 删除异常经营
export function delCompanyAbnormal(id) {
  return request({
    url: '/abnormal/companyAbnormal/' + id,
    method: 'delete'
  })
}

// 导出异常经营
export function exportCompanyAbnormal(query) {
  return request({
    url: '/abnormal/companyAbnormal/export',
    method: 'get',
    params: query
  })
}
